package com.develop.BeanUtils;

import com.develop.vo.AlarmMsgVo;

public class Message {
	public static AlarmMsgVo generateMessage(byte msgType, String msgBody) {
		int timeStamp = (int) (System.currentTimeMillis() / 1000L);
		short lenOfBody = (short) msgBody.toString().getBytes().length;
		AlarmMsgVo alarmMsgVo = new AlarmMsgVo(msgType, timeStamp, lenOfBody, msgBody.toString());

		return alarmMsgVo;
	}
}
